<?php
class DeptAction extends CommonAction {
	//过滤查询字段
	function _filter(&$map){
		$map['name'] = array('like',"%".$_POST['name']."%");
	}
    /**
     +----------------------------------------------------------
     * 部门操作列表
     *
     +----------------------------------------------------------
     * @access public
     +----------------------------------------------------------
     * @return void
     +----------------------------------------------------------
     * @throws FcsException
     +----------------------------------------------------------
     */
    public function dept()
    {
        //读取系统的用户列表
        $dept    =   D("Dept");
		$list=$dept->field('id,name,nickname')->select();
		
		//dump(	$user);
		foreach ($list as $vo){
			$userList[$vo['id']]	=	$vo['name'];
		}


        $this->assign('actionList',$userList);
        $this->display();

        return;
    }
}
?>